\hypertarget{classfilesystem_1_1client_1_1ClientConnection}{\section{Referência da Classe filesystem.\-client.\-Client\-Connection}
\label{classfilesystem_1_1client_1_1ClientConnection}\index{filesystem.\-client.\-Client\-Connection@{filesystem.\-client.\-Client\-Connection}}
}


Diagrama de colaboração para filesystem.\-client.\-Client\-Connection\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=194pt]{classfilesystem_1_1client_1_1ClientConnection__coll__graph}
\end{center}
\end{figure}
\subsection*{Métodos Públicos}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classfilesystem_1_1client_1_1ClientConnection_a1b399972a8b7f22b3cb3609341b80b88}{Client\-Connection} (Socket socket)
\item 
void \hyperlink{classfilesystem_1_1client_1_1ClientConnection_abcda712b580fd637305b4c1a3347135c}{run} ()
\end{DoxyCompactItemize}


\subsection{Descrição Detalhada}
Classe que trata a conexão entre nós

Quando um outro nó tenta se comunicar esta classe assume o controle da conexão. 

\subsection{Construtores \& Destrutores}
\hypertarget{classfilesystem_1_1client_1_1ClientConnection_a1b399972a8b7f22b3cb3609341b80b88}{\index{filesystem\-::client\-::\-Client\-Connection@{filesystem\-::client\-::\-Client\-Connection}!Client\-Connection@{Client\-Connection}}
\index{Client\-Connection@{Client\-Connection}!filesystem::client::ClientConnection@{filesystem\-::client\-::\-Client\-Connection}}
\subsubsection[{Client\-Connection}]{\setlength{\rightskip}{0pt plus 5cm}filesystem.\-client.\-Client\-Connection.\-Client\-Connection (
\begin{DoxyParamCaption}
\item[{Socket}]{socket}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1client_1_1ClientConnection_a1b399972a8b7f22b3cb3609341b80b88}
Instancia um tratador de conexão.


\begin{DoxyParams}{Parâmetros}
{\em socket} & Socket da conexão tratada. \\
\hline
\end{DoxyParams}


\subsection{Métodos}
\hypertarget{classfilesystem_1_1client_1_1ClientConnection_abcda712b580fd637305b4c1a3347135c}{\index{filesystem\-::client\-::\-Client\-Connection@{filesystem\-::client\-::\-Client\-Connection}!run@{run}}
\index{run@{run}!filesystem::client::ClientConnection@{filesystem\-::client\-::\-Client\-Connection}}
\subsubsection[{run}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-client.\-Client\-Connection.\-run (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1client_1_1ClientConnection_abcda712b580fd637305b4c1a3347135c}
Thread de tratamento de conexões.

Trata a conexão de um outro nó com este.

Mensagem de \char`\"{}\-G\-E\-T\char`\"{}\-:
\begin{DoxyItemize}
\item get path/to/file
\end{DoxyItemize}

Respostas\-:
\begin{DoxyItemize}
\item ack ok file\-Length
\begin{DoxyItemize}
\item Transferência do arquivo
\begin{DoxyItemize}
\item ok
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyItemize}


\begin{DoxyItemize}
\item ack fail 
\end{DoxyItemize}

A documentação para esta classe foi gerada a partir do seguinte arquivo\-:\begin{DoxyCompactItemize}
\item 
src/filesystem/client/\hyperlink{ClientConnection_8java}{Client\-Connection.\-java}\end{DoxyCompactItemize}
